class Class{
    constructor(num){
        this.number = num;
    }

    getDisplayName(){
        return `Class ${this.number}`;
    }

    assignLeader(Student){
        if(Student.klass === this){
            this.leader = Student
            Student.id = 999
        }
        else {
            console.log(`It is not one of us.`)
        }
    }

    appendMember(student){
        student.klass = this;
    }
}
export default Class;